package com.wego.entity.query;

import com.wego.common.base.BaseQuery;
import com.wego.entity.domain.Category;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.time.LocalDateTime;

/**
 * @className: CategoryQuery
 * @description: 商品类别
 * @author: Kuangkeli
 * @date: 2023/07/13 8:39
 **/
@Getter
@Setter
@Builder
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class CategoryQuery extends BaseQuery<Category> {
    /**
     * 类别编号
     */
    @Id
    @Column(name = "id")
    @GeneratedValue(generator = "JDBC")
    private Long id;

    /**
     * 类别名称
     */
    @Column(name = "`name`")
    private String name;


    /**
     * 父类别编号
     */
    @Column(name = "pid")
    private Long pid;

    /**
     * 备注信息
     */
    @Column(name = "info")
    private String info;

    /**
     * 状态：1上架，0下架
     */
    @Column(name = "`state`")
    private Integer state;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private LocalDateTime updateTime;
}
